From 359ef15fa2a9024507a71f2c656373925fba3ebe Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 14 Jun 2022 02:23:29 +0200 Subject: [PATCH] fix: more flexible ResourceType MainArgSignature parser --- backend/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/parser.rs b/backend/src/parser.rs index 31af756ae6..7dee4280bd 100644 --- a/backend/src/parser.rs +++ b/backend/src/parser.rs @@ -251,8 +251,8 @@ fn binding_ident_to_arg( type_params, }) => { println!("N{sym:?}\nP{type_params:?}"); - match sym.to_string().as_str() { - "ResourceType" => Typ::ResourceType( + match sym.to_string().as_str().split(".").last() { + Some("ResourceType") => Typ::ResourceType( type_params .as_ref() .and_then(|x| {