Mark frontend errors in Types/unknownFunction.go as expected.

This commit is contained in:
Max Schaefer
2020-04-14 10:18:27 +01:00
parent c6a37fdf1d
commit 13762bd76c
4 changed files with 8 additions and 6 deletions

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -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"