Skip to content

Commit c3f02b1

Browse files
committed
1 parent a7e3513 commit c3f02b1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/decl/protocol/conforms/init.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,14 @@ class Foo : P2 {
7676
self.value = value
7777
}
7878
}
79+
80+
81+
// This used to produce a bogus diagnostic with an unknown location
82+
class Base : P1 {}
83+
// expected-error@-1 {{initializer requirement 'init()' can only be satisfied by a 'required' initializer in non-final class 'Base'}}
84+
85+
class Middle : Base {
86+
init(i: Int) {}
87+
}
88+
89+
class Derived : Middle {}

0 commit comments

Comments
 (0)