test/langtools/tools/javac/lvti/SelfRefTest.out
author mcimadamore
Fri, 24 Nov 2017 16:14:33 +0000
changeset 47934 6373d9a0ad82
parent 47268 48ec75306997
permissions -rw-r--r--
8191834: Assigning a void expression to a "var" crashes the compiler Summary: local variable type inference should give error on void initializers Reviewed-by: sundar

SelfRefTest.java:16:12: compiler.err.cant.infer.local.var.type: x, (compiler.misc.local.self.ref)
SelfRefTest.java:17:53: compiler.err.already.defined: kindname.variable, y, kindname.method, test(boolean)
SelfRefTest.java:18:12: compiler.err.cant.infer.local.var.type: z, (compiler.misc.local.self.ref)
3 errors