Added test for labeled delegated expression
This commit is contained in:
+9
@@ -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");
|
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")
|
@TestMetadata("noErrorsForImplicitConstraints.kt")
|
||||||
public void testNoErrorsForImplicitConstraints() throws Exception {
|
public void testNoErrorsForImplicitConstraints() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt");
|
doTest("compiler/testData/diagnostics/tests/delegatedProperty/inference/noErrorsForImplicitConstraints.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user