Files
swift-mirror/validation-test/compiler_crashers_fixed/00017-llvm-foldingset-llvm-attributesetnode-nodeequals.swift
practicalswift c4866885c8 Rename old crash cases to match the current naming scheme.
Will allow for easy import of crash cases from swift-compiler-crashes.
2015-12-10 16:50:15 +01:00

10 lines
440 B
Swift

// RUN: %target-swift-frontend %s -parse -verify
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/jvasileff (John Vasileff)
// This bug is NOT triggered when compiling with -O.
func f<T : BooleanType>(b: T) {
}
f(true as BooleanType) // expected-error {{cannot invoke 'f' with an argument list of type '(BooleanType)'}} // expected-note {{expected an argument list of type '(T)'}}