// SHOULD_FAIL_WITH: Function genericFunT() references type parameters of the containing class class Test6(val t: T) { fun genericFunT(): T = t }