Files
swift-mirror/test/extensions.swift
2012-05-17 15:59:21 +00:00

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}}