class Bar { constructor() /* primary */ { super/*Any*/() /* () */ } } fun Bar.parameterizedExt() { } fun Bar.specificExt() { } fun test_1_1(x: Any) { x as Bar /*~> Unit */ x /*as Bar */ as Bar /*~> Unit */ x /*as Bar */.specificExt() } fun test_1_2(x: Any) { x as Bar /*~> Unit */ x /*as Bar */ as Bar /*~> Unit */ x /*as Bar */.specificExt() } fun test_2_1(x: Any) { x as Bar /*~> Unit */ x /*as Bar */ as Bar /*~> Unit */ x /*as Bar */.parameterizedExt() x /*as Bar */.parameterizedExt() } fun test_2_2(x: Any) { x as Bar /*~> Unit */ x /*as Bar */ as Bar /*~> Unit */ x /*as Bar */.parameterizedExt() x /*as Bar */.parameterizedExt() }