Commit f9fdbcd1 authored by johnvg@science.ru.nl's avatar johnvg@science.ru.nl

removed optional type context in an import of an instance, it is not required...

removed optional type context in an import of an instance, it is not required and was ignored by the compiler
parent 708e3f5d
......@@ -1465,8 +1465,7 @@ wantImportDeclarationT token pState
(types, pState) = wantList "instance types" tryBrackType pState
(class_id, pState) = stringToIdent class_name IC_Class pState
(inst_id, pState) = stringToIdent class_name (IC_Instance types) pState
(context, pState) = optionalContext pState
-> (ID_Instance class_id inst_id (types,context), pState)
-> (ID_Instance class_id inst_id types, pState)
IdentToken fun_name
# (fun_id, pState) = stringToIdent fun_name IC_Expression pState
(ii_extended, pState) = optional_extension pState
......
......@@ -552,7 +552,7 @@ instance toString Import, AttributeVar, TypeAttribute, Annotation
| ID_Class !Ident !ImportBelongings
| ID_Type !Ident !ImportBelongings
| ID_Record !Ident !ImportBelongings
| ID_Instance !Ident !Ident !(![Type],![TypeContext])
| ID_Instance !Ident !Ident ![Type]
| ID_Generic !Ident !Ident
:: ImportBelongings = IB_None | IB_Idents ![Ident] | IB_IdentsAndOptIdents ![Ident] ![Ident]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment