Files
codeql/csharp/ql/test/library-tests/csharp8/DefaultInterfaceMethods.ql
Calum Grant 573646fe6a C#: Various C#8 features:
- Async streams (test only)
 - Unmanaged generic structs (extractor support)
 - Alternate interpolated strings (test only)
 - static local function (test only)
2019-05-29 08:12:11 +01:00

11 lines
245 B
Plaintext

import csharp
class DefaultInterfaceMethod extends Method {
DefaultInterfaceMethod() {
this.hasBody() and
this.getDeclaringType() instanceof Interface
}
}
query predicate defaultInterfaceMethods(DefaultInterfaceMethod m) { any() }