diff options
author | cushon <cushon@google.com> | 2018-09-19 15:22:49 -0700 |
---|---|---|
committer | Liam Miller-Cushon <cushon@google.com> | 2018-09-27 22:14:19 -0700 |
commit | 6f715d095fd6bf616f0d09942ad932a9d0108ee9 (patch) | |
tree | d31badf24c905a57447f5273827c49c9ac57ee23 /javatests | |
parent | c7e09853f03720d95d6d413ce500aa9885a804be (diff) | |
download | turbine-6f715d095fd6bf616f0d09942ad932a9d0108ee9.tar.gz |
Canonicalization error handling
Propagate position information from the nearest tree to the type being
canonicalized, and report an error if a missing symbol is encountered.
MOE_MIGRATED_REVID=213706370
Diffstat (limited to 'javatests')
-rw-r--r-- | javatests/com/google/turbine/lower/LowerTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/javatests/com/google/turbine/lower/LowerTest.java b/javatests/com/google/turbine/lower/LowerTest.java index 474ac71..fed2743 100644 --- a/javatests/com/google/turbine/lower/LowerTest.java +++ b/javatests/com/google/turbine/lower/LowerTest.java @@ -185,6 +185,7 @@ public class LowerTest { null, null, ImmutableList.of(), + null, null); SourceTypeBoundClass i = @@ -204,6 +205,7 @@ public class LowerTest { null, null, ImmutableList.of(), + null, null); SimpleEnv.Builder<ClassSymbol, SourceTypeBoundClass> b = SimpleEnv.builder(); @@ -594,7 +596,10 @@ public class LowerTest { } catch (TurbineError error) { assertThat(error) .hasMessageThat() - .contains("Test.java: error: could not locate class file for A"); + .contains( + "Test.java:3: error: could not locate class file for A\n" + + " I i;\n" + + " ^"); } } |