// KT-2470 another name mangling bug: kotlin.test.failsWith() gets generated to invalid JSpackagefoopublicfun<T:Throwable>failsWith(block:()->Any):T{try{block()}catch(e:T){returne}throwException("Should have failed")}funbox():String{vala=failsWith<Exception>{throwException("OK")}