diff options
author | cushon <cushon@google.com> | 2018-05-03 13:28:14 -0700 |
---|---|---|
committer | Liam Miller-Cushon <cushon@google.com> | 2018-06-12 19:44:44 -0700 |
commit | 7e5cf9a597e2ea0737b989ef46aa09d29d7fea3d (patch) | |
tree | be2d1aacad078b053ecff755c2c45e9948dc6f94 /javatests | |
parent | c1f59b1b0c4327c186ee84e4087b3926affd3302 (diff) | |
download | turbine-7e5cf9a597e2ea0737b989ef46aa09d29d7fea3d.tar.gz |
Fix a crash reporting missing symbols in constant expressions
MOE_MIGRATED_REVID=195301603
Diffstat (limited to 'javatests')
-rw-r--r-- | javatests/com/google/turbine/binder/BinderErrorTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/javatests/com/google/turbine/binder/BinderErrorTest.java b/javatests/com/google/turbine/binder/BinderErrorTest.java index 4cf378e..20114e2 100644 --- a/javatests/com/google/turbine/binder/BinderErrorTest.java +++ b/javatests/com/google/turbine/binder/BinderErrorTest.java @@ -360,6 +360,19 @@ public class BinderErrorTest { " ^", }, }, + { + { + "import java.util.List;", // + "@interface Anno { Class<?> value() default Object.class; }", + "@Anno(List.NoSuch.class)", + "public class Test {}", + }, + { + "<>:3: error: symbol not found java.util.List$NoSuch", // + "@Anno(List.NoSuch.class)", + " ^", + }, + }, }; return Arrays.asList((Object[][]) testCases); } |