mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
includes a number of QoI things to help people write the correct code. I will commit the testcase for it as the next patch. The bulk of this patch is moving the stdlib, testsuite and validation testsuite to the new syntax. I moved a few uses of "as" patterns back to as? expressions in the stdlib as well. Swift SVN r27959
17 lines
493 B
Swift
17 lines
493 B
Swift
// RUN: not %swift -parse -target %target-triple %s -emit-fixits-path %t.remap -serialize-diagnostics-path %t.dia
|
|
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %s.result
|
|
// RUN: c-index-test -read-diagnostics %t.dia > %t.deserialized_diagnostics.txt 2>&1
|
|
// RUN: FileCheck --input-file=%t.deserialized_diagnostics.txt %s
|
|
|
|
// CHECK: Number of diagnostics: 2
|
|
|
|
class Base {}
|
|
class Derived : Base {}
|
|
|
|
var b : Base
|
|
b as Derived
|
|
b as Derived
|
|
|
|
var oi : Int?
|
|
if let uoi = oi {}
|