We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956ed07 commit d09041aCopy full SHA for d09041a
semantic/src/test/java/com/compilerprogramming/ezlang/semantic/TestSemaAssignTypes.java
@@ -5,6 +5,7 @@
5
import com.compilerprogramming.ezlang.parser.Parser;
6
import com.compilerprogramming.ezlang.types.TypeDictionary;
7
import org.junit.Assert;
8
+import org.junit.Ignore;
9
import org.junit.Test;
10
11
public class TestSemaAssignTypes {
@@ -420,4 +421,20 @@ func foo()
420
421
""";
422
analyze(src, "foo", "func foo()");
423
}
424
+
425
+ @Ignore
426
+ @Test(expected = CompilerException.class)
427
+ public void test23() {
428
+ String src = """
429
+ func bar(arg: Int)->Int {
430
+ if (arg)
431
+ return 42;
432
+ return 0;
433
+ }
434
+ func foo()->Int {
435
+ return bar();
436
437
+""";
438
+ analyze(src, "foo", "func foo()->Int");
439
440
0 commit comments