mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
259 B
Swift
9 lines
259 B
Swift
// RUN: %swift %s -verify
|
|
|
|
extension extension_for_invalid_type { // expected-error {{use of undeclared type}}
|
|
static func f() { }
|
|
}
|
|
|
|
typealias Point : (x : Int, y : Int)
|
|
|
|
extension Point { } // expected-error{{non-nominal type 'Point' cannot be extended}} |