Skip to content

Commit b2f310c

Browse files
committed
Add change note
1 parent 4711feb commit b2f310c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Previously, `DefinedType.getBaseType` gave the underlying type. It now gives the right hand side of the type declaration, as the documentation indicated that it should.

go/ql/test/library-tests/semmle/go/Types/DefinedType_getBaseType.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@
4242
| interface.go:34:6:34:7 | i7 | interface { [5]int \| ~string; ~string; String func() string } |
4343
| interface.go:41:6:41:7 | i8 | interface { ~[]int \| ~string; String func() string; StringA func() string } |
4444
| interface.go:47:6:47:7 | i9 | interface { ~[]int \| ~string; String func() string; StringB func() string } |
45-
| interface.go:52:6:52:8 | i10 | interface { } |
45+
| interface.go:52:6:52:8 | i10 | interface { comparable } |
4646
| interface.go:57:6:57:8 | i11 | interface { [5]uint8 \| string; int } |
47-
| interface.go:63:6:63:8 | i12 | interface { []uint8 \| string } |
48-
| interface.go:69:6:69:8 | i13 | interface { []uint8 \| string } |
47+
| interface.go:63:6:63:8 | i12 | interface { comparable; []uint8 \| string } |
48+
| interface.go:69:6:69:8 | i13 | interface { comparable; []uint8 \| string } |
4949
| interface.go:75:6:75:8 | i14 | interface { []uint8 \| string; ~[]int \| ~string; String func() string; StringA func() string } |
5050
| interface.go:81:6:81:8 | i15 | interface { []uint8 \| string; ~[]int \| ~string; String func() string; StringB func() string } |
5151
| interface.go:87:6:87:8 | i16 | interface { } |
5252
| interface.go:91:6:91:8 | i17 | interface { StringA func() string } |
53-
| interface.go:95:6:95:8 | i18 | interface { StringA func() string } |
53+
| interface.go:95:6:95:8 | i18 | interface { comparable; StringA func() string } |
5454
| interface.go:101:6:101:8 | i19 | interface { StringB func() string } |
55-
| interface.go:105:6:105:8 | i20 | interface { StringB func() string } |
55+
| interface.go:105:6:105:8 | i20 | interface { comparable; StringB func() string } |
5656
| interface.go:114:6:114:19 | testComparable | struct { } |
5757
| interface.go:115:6:115:20 | testComparable0 | struct { } |
5858
| interface.go:116:6:116:20 | testComparable1 | struct { } |

0 commit comments

Comments
 (0)