Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 4eac5a1

Browse files
author
Max Schaefer
committed
Add test to demonstrate that aliases have entities.
There are, however, no corresponding types.
1 parent 1a8688a commit 4eac5a1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| main.go:3:6:3:11 | status | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Decl | status |
2+
| main.go:5:6:5:12 | intlist | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Decl | []int |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import go
2+
3+
from TypeEntity te
4+
select te, te.getPackage(), te.getType().pp()

0 commit comments

Comments
 (0)