mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	proc/variables: bugfix: makes TestEvalExpression more robust
Fixes #320
This commit is contained in:
		| @ -537,7 +537,7 @@ func TestEvalExpression(t *testing.T) { | ||||
| 		{"nil[0]", false, "", "", "", fmt.Errorf("expression \"nil\" (nil) does not support indexing")}, | ||||
| 		{"nil[2:10]", false, "", "", "", fmt.Errorf("can not slice \"nil\" (type nil)")}, | ||||
| 		{"nil.member", false, "", "", "", fmt.Errorf("type nil is not a struct")}, | ||||
| 		{"(map[string]int)(0x4000)", false, "", "", "", fmt.Errorf("can not convert \"0x4000\" to *struct hash<string,int>")}, | ||||
| 		{"(map[string]main.astruct)(0x4000)", false, "", "", "", fmt.Errorf("can not convert \"0x4000\" to *struct hash<string,main.astruct>")}, | ||||
|  | ||||
| 		// typecasts | ||||
| 		{"uint(i2)", false, "2", "", "uint", nil}, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 aarzilli
					aarzilli