Move to Companion Object: Forbid for functions/properties referencing type parameters of the containing class

#KT-13876 Fixed
This commit is contained in:
Alexey Sedunov
2016-09-19 17:41:37 +03:00
parent 4cd4b8781d
commit 72ff5dd2cc
5 changed files with 39 additions and 8 deletions
@@ -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
}