Files
swift-mirror/validation-test/compiler_crashers/008-boolean-operator.swift
Doug Gregor f7458a8e05 Update compiler-crashers testsuite r21946
Swift SVN r21952
2014-09-15 21:00:17 +00:00

7 lines
259 B
Swift

// RUN: %swift -emit-ir %s -verify
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
func ^(a: BooleanType, Bool) -> Bool {
return !(a) // expected-error{{cannot invoke '!' with an argument of type 'BooleanType'}}
}