mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
671 B
Swift
15 lines
671 B
Swift
// RUN: rm -f %t.*
|
|
|
|
// Test swift executable
|
|
// RUN: %target-swift-frontend -typecheck -serialize-diagnostics-path %t.dia %s -verify
|
|
// RUN: c-index-test -read-diagnostics %t.dia > %t.deserialized_diagnostics.txt 2>&1
|
|
// RUN: %FileCheck --input-file=%t.deserialized_diagnostics.txt %s
|
|
|
|
var x = String.init(_:) // expected-error{{ambiguous use of 'init(_:)'}}
|
|
// CHECK: {{.*[/\\]}}serialized-diagnostics-prettyprint.swift:[[@LINE-1]]:16: error: ambiguous use of 'init(_:)'
|
|
|
|
// CHECK: Swift.String.init:2:19: note: found this candidate
|
|
// CHECK: CONTENTS OF FILE Swift.String.init:
|
|
// CHECK: struct String {
|
|
// CHECK: public init(_ content: Substring.UnicodeScalarView)
|