Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -331,7 +331,7 @@ public static String checkInstanceVariableName(RubyContext context, String name,
}

public static String checkClassVariableName(RubyContext context, String name, Node currentNode) {
if (!name.startsWith("@@")) {
if (!IdUtil.isValidClassVariableName(name)) {
throw new RaiseException(context.getCoreLibrary().nameErrorInstanceNameNotAllowable(name, currentNode));
}

0 comments on commit 29dd83e

Please sign in to comment.