mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There's a lot more work to do here, but start to categorize tests along the lines of what a specification might look like, with directories (chapters) for basic concepts, declarations, expressions, statements, etc. Swift SVN r9958
16 lines
325 B
Swift
16 lines
325 B
Swift
// RUN: %swift -parse %s -verify -parse-as-library
|
|
|
|
struct X {
|
|
struct Inner : Proto {
|
|
}
|
|
struct Inner2 : Proto2 { // expected-error {{type 'X.Inner2' does not conform to protocol 'Proto2'}}
|
|
}
|
|
}
|
|
|
|
protocol Proto {
|
|
}
|
|
|
|
protocol Proto2 {
|
|
def f() // expected-note {{protocol requires function 'f' with type '() -> ()'}}
|
|
}
|