Files
codeql/swift/ql/test/extractor-tests/generated/decl/ExtensionDecl/extensions.swift
2023-01-17 12:49:53 +01:00

30 lines
305 B
Swift

struct S {}
class C {}
extension S {
var x : Int { get { return 42 } }
func foo() {}
}
extension C {
var y : Int { get { return 404 } }
func bar() {}
}
protocol P1 {
func baz()
}
extension S : P1 {
func baz() {}
}
protocol P2 {}
extension C : P1, P2 {
func baz() {}
}