blob: 8e07746e0c410c921d0b766a1f3d761bdf0d47a0 [file] [log] [blame]
// RUN: %empty-directory(%t) && %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t.result
// RUN: diff -u %s.expected %t.result
// RUN: %target-swift-frontend -typecheck %t.result -swift-version 4
class HasTypeMethod {
var type: Int {
_ = type(of: 1)
return 1
}
}
class NoTypeMethod {
func meth() {
_ = type(of: 1) // Don't need to add prefix
}
}