提交 02c647df 编写于 作者: M mcimadamore

8013404: Unclear spec for target typing with conditional operator (?:)

Summary: Fix previously ignored test
Reviewed-by: jjg, vromero
上级 532cf656
......@@ -23,11 +23,10 @@
/*
* @test
* @ignore 8013404: Test awaits spec clarification
* @bug 8003280
* @bug 8003280 8013404
* @summary Add lambda tests
* check that target type of cast is propagated to conditional subexpressions
* @compile TargetType36.java
* check that target type of cast is not propagated to conditional subexpressions
* @compile/fail/ref=TargetType36.out -XDrawDiagnostics TargetType36.java
*/
class TargetType36 { //awaits spec wording on cast vs. poly
......
TargetType36.java:40:30: compiler.err.unexpected.lambda
TargetType36.java:40:43: compiler.err.unexpected.lambda
2 errors
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册