Fiying bug
This commit is contained in:
parent
f3a2eb0fab
commit
b5ca061136
@ -9905,7 +9905,7 @@ function get_ir(parsed) {
|
||||
throw new IRError(field, "Invalid statement!");
|
||||
}
|
||||
if (defined.indexOf(field.fieldtype) < 0) {
|
||||
if (builtin.indexOf(field.fieldtype) < 0 && field.fieldtype !== field.name) {
|
||||
if (builtin.indexOf(field.fieldtype) < 0 && field.fieldtype !== statement.name) {
|
||||
throw new IRError(field, `Type ${field.fieldtype} is not defined!`);
|
||||
}
|
||||
} else {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/jrpcgen",
|
||||
"version": "1.0.25",
|
||||
"version": "1.0.26",
|
||||
"main": "lib/index.js",
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@3.1.1",
|
||||
|
@ -101,7 +101,7 @@ export default function get_ir(parsed: Parsed): IR {
|
||||
}
|
||||
|
||||
if (defined.indexOf(field.fieldtype) < 0) {
|
||||
if (builtin.indexOf(field.fieldtype) < 0 && field.fieldtype !== field.name) {
|
||||
if (builtin.indexOf(field.fieldtype) < 0 && field.fieldtype !== statement.name) {
|
||||
throw new IRError(
|
||||
field,
|
||||
`Type ${field.fieldtype} is not defined!`
|
||||
|
Loading…
Reference in New Issue
Block a user