the parser finally parses 'echo {1,2}' as it should

This commit is contained in:
Andreas Rumpf
2017-09-30 21:35:30 +02:00
parent b2c358be96
commit ddc131cf07
18 changed files with 26 additions and 38 deletions

View File

@@ -14,13 +14,13 @@ type
proc testSem =
var
things: array [0..1, TComplexRecord] = [
things: array[0..1, TComplexRecord] = [
(s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
(s: "hi", x: 69, y: 45, z: 1.0, chars: {'a', 'b', 'c'})]
write(stdout, things[0].x)
const
things: array [0..1, TComplexRecord] = [
things: array[0..1, TComplexRecord] = [
(s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
(s: "hi", x: 69, y: 45, z: 1.0)] #ERROR
otherThings = [ # the same

View File

@@ -12,7 +12,7 @@ type
chars: set[char]]
const
things: array [0..1, TComplexRecord] = [
things: array[0..1, TComplexRecord] = [
(s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
(s: "hi", x: 69, y: 45, z: 1.0, chars: {})]
otherThings = [ # the same