Fix applicability of dsl-marker on function type

When marker is applied to function type it should work
like it's applied to receiver type

 #KT-23255 Fixed
This commit is contained in:
Denis Zharkov
2018-08-10 18:10:18 +07:00
parent 99fe6de52a
commit 117abb04aa
12 changed files with 259 additions and 11 deletions
@@ -16890,6 +16890,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/dslMarker"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotatedFunctionType.kt")
public void testAnnotatedFunctionType() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType.kt");
}
@TestMetadata("annotatedFunctionType_1_4.kt")
public void testAnnotatedFunctionType_1_4() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedFunctionType_1_4.kt");
}
@TestMetadata("annotatedTypeArgument.kt")
public void testAnnotatedTypeArgument() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/dslMarker/annotatedTypeArgument.kt");