Skip to content

Commit

Permalink
Enable Java 11 for test targets and add sample 'var' usage
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 494804829
  • Loading branch information
lauraharker authored and copybara-github committed Dec 12, 2022
1 parent 17583ec commit 40a7b1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ gen_java_tests(
"**/j2clbuild/**/*.java",
],
),
javacopts = [
"-source 11",
"-target 11",
],
prefix_path = "test/",
deps = [
":compiler_lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void deserializesMultipleUnionsOfNativeTypes() {

@Test
public void deserializesUnionReferencingOtherUnion() {
TypePool typePool =
var typePool =
TypePool.newBuilder()
// U0 := (number, string)
.addType(
Expand Down

0 comments on commit 40a7b1f

Please sign in to comment.