mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
10 lines
324 B
Swift
10 lines
324 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
let f1: (Int) -> Int = { $0 }
|
|
let f2: @convention(swift) (Int) -> Int = { $0 }
|
|
let f3: @convention(block) (Int) -> Int = { $0 }
|
|
let f4: @convention(c) (Int) -> Int = { $0 }
|
|
|
|
let f5: @convention(INTERCAL) (Int) -> Int = { $0 } // expected-error{{convention 'INTERCAL' not supported}}
|
|
|