mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Doing so prevents another common source of stack overflows in the validator, and addresses crash suite scenarios 002 and 004. (rdar://problem/18232499, rdar://problem/18232668) Swift SVN r22104
6 lines
185 B
Swift
6 lines
185 B
Swift
// RUN: %swift %s -parse -verify
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
|
|
func x(x) { // expected-error {{use of undeclared type 'x'}}
|
|
}
|