Move to Companion Object: Forbid for functions/properties referencing type parameters of the containing class
#KT-13876 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// SHOULD_FAIL_WITH: Function <b><code>genericFunT()</code></b> references type parameters of the containing class
|
||||
class Test6<T>(val t: T) {
|
||||
fun <caret>genericFunT(): T = t
|
||||
}
|
||||
Reference in New Issue
Block a user