compiler: generate methods names with lowercased first letter

Methods names from debuginfo should match methods names from manifest.
Original method names are stored in ID field.
This commit is contained in:
Anna Shaleva 2020-08-13 10:29:08 +03:00
parent 3c170271c4
commit 9456f729be
3 changed files with 13 additions and 7 deletions

View file

@ -32,7 +32,7 @@ func TestCompiler(t *testing.T) {
require.NoError(t, err)
m := map[string]bool{}
for i := range di.Methods {
m[di.Methods[i].Name.Name] = true
m[di.Methods[i].ID] = true
}
require.Contains(t, m, "Func1")
require.Contains(t, m, "Func2")