Forbid usage of outer's generic parameter in nested class

#KT-1174 In Progress
This commit is contained in:
Alexander Udalov
2012-12-10 20:36:06 +04:00
parent 43c37398af
commit 7a3000ccac
6 changed files with 26 additions and 7 deletions
@@ -0,0 +1,13 @@
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
}
}