Skip to content

Commit

Permalink
Add now-fixed test for SR-5317.
Browse files Browse the repository at this point in the history
  • Loading branch information
DougGregor committed Jul 19, 2018
1 parent 8087bd4 commit a733aed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/attr/attr_dynamic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ class InheritsDynamic: Foo {
// CHECK: {{^}} override func notDynamic()
override func notDynamic() {}
}

// SR-5317
@objcMembers
class ObjCMemberCheck {
dynamic var s = NotObjCAble(c: Foo()) // expected-error{{'dynamic' var 's' must also be '@objc'}}
}

0 comments on commit a733aed

Please sign in to comment.