Skip to content

Getting error when using Maps #2

@thomsong

Description

@thomsong

I'm getting the following error when trying to use a Map

panic: interface conversion: interface {} is nil, not *ast.ClassType

go run . run -f Test.cls -a "Test#testMap"

public class Test {
    public static void testMap() {
        Map<String,String> info = new Map<String,String>();
        info.put('age', '5');
        info.put('name', 'Doug');
        System.debug(info.keySet());
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions