|
1 | 1 | package pkg
|
2 | 2 |
|
3 |
| -var i interface{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
| 3 | +var i interface{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
4 | 4 |
|
5 |
| -type t interface{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
6 |
| -type a = interface{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
| 5 | +type t interface{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 6 | +type a = interface{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
7 | 7 |
|
8 |
| -func any1(a interface{}) { // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
9 |
| - m1 := map[interface{}]string{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
10 |
| - m2 := map[int]interface{}{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
11 |
| - a := []interface{}{} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
12 |
| - m3 := make(map[int]interface{}, 1) // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
13 |
| - a2 := make([]interface{}, 2) // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
| 8 | +func any1(a interface{}) { // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 9 | + m1 := map[interface{}]string{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 10 | + m2 := map[int]interface{}{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 11 | + a := []interface{}{} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 12 | + m3 := make(map[int]interface{}, 1) // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
| 13 | + a2 := make([]interface{}, 2) // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
14 | 14 | }
|
15 | 15 |
|
16 |
| -func any2(a int) interface{} {} // MATCH /since GO 1.18 'interface{}' can be replaced by 'any'/ |
| 16 | +func any2(a int) interface{} {} // MATCH /since Go 1.18 'interface{}' can be replaced by 'any'/ |
17 | 17 |
|
18 | 18 | var ni interface{ Close() }
|
19 | 19 |
|
|
0 commit comments