Added test for labeled delegated expression

This commit is contained in:
Svetlana Isakova
2014-07-04 20:51:04 +04:00
parent 51a979d5f0
commit cec01237d0
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,9 @@
class A3 {
val a: String by @l MyProperty()
class MyProperty<T> {}
fun <T> MyProperty<T>.get(thisRef: Any?, desc: PropertyMetadata): T {
throw Exception("$thisRef $desc")
}
}
@@ -2596,6 +2596,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.kt");
}
@TestMetadata("labeledDelegatedExpression.kt")
public void testLabeledDelegatedExpression() throws Exception {
doTest("compiler/testData/diagnostics/tests/delegatedProperty/inference/labeledDelegatedExpression.kt");
}
@TestMetadata("noErrorsForImplicitConstraints.kt")
public void testNoErrorsForImplicitConstraints() throws Exception {
doTest("compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt");