KT-6026 Exception on instantiating a nested class in an anonymous object
 #KT-6026 Fixed