mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Embedded] Do not produce cannot_specialize_class for live issues
SourceKit explicitly disables WMO, silence the diagnostic in this case (but leave it enabled for explicit non-WMO builds otherwise).
This commit is contained in:
@@ -18,6 +18,8 @@ func foo() {
|
||||
|
||||
@main
|
||||
struct Main {
|
||||
var someClass = SomeClass()
|
||||
|
||||
static func main() {
|
||||
foo()
|
||||
}
|
||||
@@ -25,9 +27,9 @@ struct Main {
|
||||
|
||||
//--- file2.swift
|
||||
|
||||
func bar<T>(_ T: T.Type) {
|
||||
|
||||
}
|
||||
final class SomeClass {}
|
||||
|
||||
func bar<T>(_ T: T.Type) {}
|
||||
|
||||
// CHECK: {
|
||||
// CHECK-NEXT: key.diagnostics: [
|
||||
|
||||
Reference in New Issue
Block a user