Test data: adjust test data after prohibiting properties with typeparameters not used in receiver
This commit is contained in:
+3
-1
@@ -60,4 +60,6 @@ val t1 = test2<<error>A</error>>(A())
|
||||
val t2 = test2<<error>B</error>>(C())
|
||||
val t3 = test2<C>(C())
|
||||
|
||||
val <T, B : T> x : Int = 0
|
||||
val <T, B: T> Pair<T, B>.x : Int get() = 0
|
||||
|
||||
class Pair<A, B>()
|
||||
|
||||
@@ -27,13 +27,13 @@ class TypeParams<in T1 : Any, out T2, T3 : (Int) -> Int, T4, T5 : Any?, T6 : T5,
|
||||
fun T1.withOwnParamExtensionAfterName<T1>(p: T1) {
|
||||
}
|
||||
|
||||
val <G1> withOwnParam: G1
|
||||
val <G1> G1.withOwnParam: G1
|
||||
get() = throw IllegalStateException()
|
||||
|
||||
val <G1: Int?> withOwnBoundedParam: G1
|
||||
val <G1: Int?> G1.withOwnBoundedParam: G1
|
||||
get() = throw IllegalStateException()
|
||||
|
||||
val <G1: T4> withOwnBoundedParamByOther: G1
|
||||
val <G1: T4> G1.withOwnBoundedParamByOther: G1
|
||||
get() = throw IllegalStateException()
|
||||
|
||||
val useSomeParam: T2
|
||||
|
||||
@@ -84,7 +84,7 @@ PsiJetFileStubImpl[package=test]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=T2]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnBoundedParam, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=false, isTopLevel=false, isVar=false, name=withOwnBoundedParam]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnBoundedParam, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=true, isTopLevel=false, isVar=false, name=withOwnBoundedParam]
|
||||
MODIFIER_LIST:[public final]
|
||||
TYPE_PARAMETER_LIST:
|
||||
TYPE_PARAMETER:[fqName=null, isInVariance=false, isOutVariance=false, name=G1]
|
||||
@@ -97,7 +97,10 @@ PsiJetFileStubImpl[package=test]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnBoundedParamByOther, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=false, isTopLevel=false, isVar=false, name=withOwnBoundedParamByOther]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnBoundedParamByOther, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=true, isTopLevel=false, isVar=false, name=withOwnBoundedParamByOther]
|
||||
MODIFIER_LIST:[public final]
|
||||
TYPE_PARAMETER_LIST:
|
||||
TYPE_PARAMETER:[fqName=null, isInVariance=false, isOutVariance=false, name=G1]
|
||||
@@ -107,13 +110,19 @@ PsiJetFileStubImpl[package=test]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnParam, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=false, isTopLevel=false, isVar=false, name=withOwnParam]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
PROPERTY:[fqName=test.TypeParams.withOwnParam, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=true, isTopLevel=false, isVar=false, name=withOwnParam]
|
||||
MODIFIER_LIST:[public final]
|
||||
TYPE_PARAMETER_LIST:
|
||||
TYPE_PARAMETER:[fqName=null, isInVariance=false, isOutVariance=false, name=G1]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=G1]
|
||||
FUN:[fqName=test.TypeParams.f, hasBlockBody=true, hasBody=true, hasTypeParameterListBeforeFunctionName=true, isExtension=false, isTopLevel=false, name=f]
|
||||
MODIFIER_LIST:[public final]
|
||||
ANNOTATION_ENTRY:[hasValueArguments=false, shortName=inline]
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
// ERROR: Type parameter of a property must be used in its receiver type
|
||||
|
||||
class Owner<T> {
|
||||
val <R> <caret>p: R
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
// ERROR: Type parameter of a property must be used in its receiver type
|
||||
|
||||
class Owner<T> {
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
class A {
|
||||
val <T> test: T get() {
|
||||
val <T> T.test: T get() {
|
||||
return <caret>foo
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
class A<T> {
|
||||
val <T> test: T get() {
|
||||
val <T> T.test: T get() {
|
||||
return <caret>foo
|
||||
}
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
// "Create parameter 'foo'" "false"
|
||||
// ERROR: Unresolved reference: foo
|
||||
// ACTION: Create property 'foo'
|
||||
|
||||
class A {
|
||||
val <T> test: T = <caret>foo
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// "Create parameter 'foo'" "false"
|
||||
// ACTION: Create property 'foo'
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
class A<T> {
|
||||
val <T> test: T = <caret>foo
|
||||
}
|
||||
Reference in New Issue
Block a user