Files
swift-mirror/validation-test/compiler_scale/dynamic_lookup_2.swift
Jordan Rose 1eaa767407 [test] Run scale-tests on Linux too (#27223)
It's likely that these were listed as "REQUIRES: OS=macosx" to not
redundantly run them for iOS et al, but they don't take that long and
so it's more useful for Linux devs to be able to run them locally if
need be. Or to catch something that really is different on non-macOS.
2019-09-18 08:27:37 -07:00

19 lines
487 B
Swift

// RUN: %scale-test --sum-multi --begin 5 --end 16 --step 5 --select NumIterableDeclContextParsed -Xfrontend=-enable-objc-interop -Xfrontend=-disable-objc-attr-requires-foundation-module %s
// REQUIRES: asserts
// Dynamic member lookup should not force delayed parsing of structs, enums or protocol
// extensions.
struct S${N} {}
enum E${N} {}
extension Sequence {}
% if int(N) == 1:
class C {
@objc func isObjCMember() {}
}
% end
func f${N}(a: AnyObject) {
a.isObjCMember!()
}