Create from Usage: Do not create type parameter by constuctor reference

#KT-17353 Fixed
This commit is contained in:
Alexey Sedunov
2017-07-06 16:25:38 +03:00
parent 2e76a76088
commit 0365d3a3d6
4 changed files with 33 additions and 0 deletions
@@ -0,0 +1,12 @@
// "Create type parameter 'Test' in class 'C'" "false"
// ACTION: Add 'testng' to classpath
// ACTION: Create annotation 'Test'
// ACTION: Make internal
// ACTION: Make private
// ACTION: Make protected
// ERROR: Unresolved reference: Test
class C {
@<caret>Test fun foo() {
}
}
@@ -0,0 +1,8 @@
// "Create type parameter 'Test' in class 'C'" "false"
// ACTION: Add 'testng' to classpath
// ACTION: Create class 'Test'
// ACTION: Create test
// ERROR: Unresolved reference: Test
class C : <caret>Test() {
}