Gianluca Mondini

Results 70 issues of Gianluca Mondini

The following points must be tested extensively: ### the language itself The language itself is widely tested using the gc comparison tests. Just keep adding such tests. ### templates Crucial...

Testing

## How to reproduce Add this test to `test/misc/templates_test.go`: ```go "https://github.com/open2b/scriggo/issues/936": { sources: fstest.Files{ "index.txt": ` {% var f = func() []int { defer func() { }() return []int{} }...

bug
needsInvestigation
templates
RuntimeError

Some variables are reported more than once by method 'Template.UsedVars'. For example, a call to such method returned this: ```go ... "appliedFilters", "appliedFilters", "banners", "banners", "banners", ... "customerFirstName", "customerFirstName", "departments",...

bug
needsInvestigation
api
templates

Consider this code: ```go package main type T struct { A, B int} func main() { _ = T{ A: 10, B: 20 } } ``` The parser should return...

bug
parser
templates
InvalidBehavior

This code: ```go package main func main() { m := map[string][3]int{} m["x"] = [3]int{10, 20, 30} for _, v := range m { s := v[:] _ = s }...

bug
needsInvestigation
RuntimeError

## Source code ```go package main import "fmt" var P = new(int) func main() { fmt.Println(*P) *P = 32 fmt.Println(*P) *P++ fmt.Println(*P) } ``` ## Scriggo output ``` 0 32...

needsInvestigation
InvalidBehavior

This code: ```go package main func main() { var p *int *p = 1 } ``` should panic with: ``` panic: runtime error: invalid memory address or nil pointer dereference...

bug
needsInvestigation

## Source code ```go package main import ( "fmt" ) func f() (err error) { defer func() { _ = recover() }() var i int _ = 1 / i...

bug
needsInvestigation
InvalidBehavior

```go package main import "fmt" func main() { m := map[int]int{0: 1} i := 0 i, m[i] = 1, 2 fmt.Println(m) } ``` should print ``` map[0:2] ``` but prints...

bug
needsInvestigation
InvalidBehavior