Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0038-lowering-CheckedCastEmitter-emitConditional.swift
Slava Pestov 5f9fe6fa2c SILGen: Fix crash with non-scalar casts requiring re-abstraction
This might only come up in invalid code, but for example
casting a function type to String would trigger it.
2017-01-03 19:05:41 -08:00

5 lines
93 B
Swift

// RUN: %target-swift-frontend %s -emit-silgen
let a: () -> Int? = { return nil }
a as? Int