package test open class Base() { fun foo(): T = throw Exception() } class Inh() : Base()