mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Mark frontend errors in Types/unknownFunction.go as expected.
This commit is contained in:
@@ -8,4 +8,4 @@
|
||||
| pkg1/tst.go:33:1:35:1 | function declaration | 0 |
|
||||
| pkg1/tst.go:37:1:37:26 | function declaration | 1 |
|
||||
| pkg1/tst.go:39:1:57:1 | function declaration | 2 |
|
||||
| unknownFunction.go:8:1:12:1 | function declaration | 0 |
|
||||
| unknownFunction.go:10:1:14:1 | function declaration | 0 |
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
| pkg1/tst.go:33:1:35:1 | function declaration | 1 |
|
||||
| pkg1/tst.go:37:1:37:26 | function declaration | 0 |
|
||||
| pkg1/tst.go:39:1:57:1 | function declaration | 0 |
|
||||
| unknownFunction.go:8:1:12:1 | function declaration | 0 |
|
||||
| unknownFunction.go:10:1:14:1 | function declaration | 0 |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
| unknownFunction.go:9:7:9:21 | unknownFunction | invalid type |
|
||||
| unknownFunction.go:9:7:9:23 | call to unknownFunction | invalid type |
|
||||
| unknownFunction.go:10:7:10:15 | ...+... | invalid type |
|
||||
| unknownFunction.go:11:7:11:21 | unknownFunction | invalid type |
|
||||
| unknownFunction.go:11:7:11:23 | call to unknownFunction | invalid type |
|
||||
| unknownFunction.go:12:7:12:15 | ...+... | invalid type |
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package main
|
||||
|
||||
// This file tests type inference for expressions referencing undeclared entities.
|
||||
// It is therefore expected to produce extractor warnings.
|
||||
// It is therefore expected to expected frontend errors.
|
||||
|
||||
// codeql test: expect frontend errors
|
||||
|
||||
import "fmt"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user