Skip to content

Commit 55b542f

Browse files
committed
[TypeChecker] NFC: Adjust note in object_literals_ios.swift for iOS dependency
Resolves: rdar://problem/58794200
1 parent 13f7ac2 commit 55b542f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Sema/object_literals_ios.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// RUN: %target-typecheck-verify-swift
22
// REQUIRES: OS=ios
33

4-
// REQUIRES: rdar58794200
5-
64
struct S: _ExpressibleByColorLiteral {
75
init(_colorLiteralRed: Float, green: Float, blue: Float, alpha: Float) {}
86
}
97

108
let y: S = #colorLiteral(red: 1, green: 0, blue: 0, alpha: 1)
119
let y2 = #colorLiteral(red: 1, green: 0, blue: 0, alpha: 1) // expected-error{{could not infer type of color literal}} expected-note{{import UIKit to use 'UIColor' as the default color literal type}}
12-
let y3 = #colorLiteral(red: 1, bleen: 0, grue: 0, alpha: 1) // expected-error{{incorrect argument labels in call (have 'red:bleen:grue:alpha:', expected 'red:green:blue:alpha:')}} expected-error{{could not infer type of color literal}} expected-note{{import AppKit to use 'NSColor' as the default color literal type}}
10+
let y3 = #colorLiteral(red: 1, bleen: 0, grue: 0, alpha: 1) // expected-error{{incorrect argument labels in call (have 'red:bleen:grue:alpha:', expected 'red:green:blue:alpha:')}}
11+
// expected-error@-1 {{could not infer type of color literal}} expected-note@-1 {{import UIKit to use 'UIColor' as the default color literal type}}
1312

1413
struct I: _ExpressibleByImageLiteral {
1514
init(imageLiteralResourceName: String) {}

0 commit comments

Comments
 (0)