Add extractor test that empty interface type exists

This commit is contained in:
Owen Mansel-Chan
2021-11-26 15:12:39 -05:00
parent d35a46e2f3
commit f9a3832aa2
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1 @@
| success |

View File

@@ -0,0 +1,9 @@
package main
// This file tests that the extractor does not crash on files that do not
// end in a newline, so it is important not to autoformat this file.
// autoformat-ignore
func main() {
}

View File

@@ -0,0 +1,4 @@
import go
where exists(InterfaceType empty | not empty.hasMethod(_, _))
select "success"