﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1112	Parser accepts syntax errors in matchcontinue expressions	Martin Sjölund	Martin Sjölund	"The following expression triggers a parser error for .mo file, but is accepted using loadFile in a script (the resulting function is empty, but does exist).
The bootstrapping branch has a test case for this (MatchCase10).

b := matchcontinue (a)
case i local i then 100; // local Integer i; is the proper way to type. Parser should give an error.
end matchcontinue;

martin@vbox:~/dev/Bootstrapping/testsuite/meta$ ./omcd +g=MetaModelica +d=failtrace,matchcase MatchCase10.mo
MatchCase10.mo:7:20-7:30:writable Error: unexpected token: i, parsing resumed at token ';' on line 7, column 30
MatchCase10.mo:8:5-8:22:writable Error: unexpected token: end, parsing resumed at token ';' on line 8, column 22

martin@vbox:~/dev/Bootstrapping/testsuite/meta$ ./omcd +g=MetaModelica +d=failtrace,matchcase MatchCase10.mos
true
1
record SimulationResult
    resultFile = ""MatchCase10_res.plt""
end SimulationResult;
-1078418808.0
0"	defect	closed	normal				fixed		Martin Sjölund
