Files
kotlin-fork/compiler/testData/diagnostics/tests/inner/outerGenericParam.kt
T
Alexander Udalov 7a3000ccac Forbid usage of outer's generic parameter in nested class
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00

14 lines
233 B
Kotlin

class Outer<T> {
class Nested {
fun foo(t: <!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>T<!>) = t
}
class Nested2<T> {
fun foo(t: T) = t
}
inner class Inner {
fun foo(t: T) = t
}
}