summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2015-03-03 14:06:10 +0100
committerGravatar wuestholz <unknown>2015-03-03 14:06:10 +0100
commitdbce023dbbbc2a73853c3d2b6251e85d4d627376 (patch)
tree7b8551051c83b302df0906e4bc535e66298eef8a
parent37cf41094924998548a8c7d3423d4b63da3fb482 (diff)
Fixed issue #59.
-rw-r--r--Source/Dafny/Dafny.atg2
-rw-r--r--Source/Dafny/Parser.cs1
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/Dafny/Dafny.atg b/Source/Dafny/Dafny.atg
index f78def79..1280e3fd 100644
--- a/Source/Dafny/Dafny.atg
+++ b/Source/Dafny/Dafny.atg
@@ -1163,7 +1163,7 @@ TypeAndToken<out IToken tok, out Type ty>
}
.)
| (. Expression e; tok = t; .)
- NameSegmentForTypeName<out e>
+ NameSegmentForTypeName<out e> (. tok = t; .)
{ "." ident (. tok = t; List<Type> typeArgs = null; .)
[ (. typeArgs = new List<Type>(); .)
GenericInstantiation<typeArgs>
diff --git a/Source/Dafny/Parser.cs b/Source/Dafny/Parser.cs
index 840627bb..295160c2 100644
--- a/Source/Dafny/Parser.cs
+++ b/Source/Dafny/Parser.cs
@@ -1633,6 +1633,7 @@ bool IsType(ref IToken pt) {
case 1: {
Expression e; tok = t;
NameSegmentForTypeName(out e);
+ tok = t;
while (la.kind == 25) {
Get();
Expect(1);