You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import sets
import tables
type
eResearchType*=enum
tResearch,
tEngineering,
tMixed,
eDevelopmentField*=enum# Science fields
sciBiology,
sciCemistry,
sciPhysics,
sciMathematics,
sciSystemsScience,
sciEconomics,
sciHealthScience,
sciPsycology,
sciAstronomy,
sciLinguistics,
sciPhylosophy,
sciPoliticalScience,
sciSociology,
sciEducation,
sciArchitecture,
sciCognitiveSciences,
sciComputerScience,
sciMilitaryScience,
sciXenoBiology,
# After here, Enginering fields
engAeronautics,
engBiomedical,
engComputer,
engChemical,
engElectical,
engMechanical,
engNuclear,
engPolymer,
engSoftware,
engSystem
PropertyKind=enum
tInt,
tFloat,
tBool,
tString,
tArray,
eRType,
sTags,
eDField
Property=refPropertyObjPropertyObj=objectcase kind: PropertyKind of tInt: intValue: int of tFloat: floatValue: float of tBool: boolValue: bool of tString: stringValue: string of tArray: arrayValue: seq of eRType:
eRTypeValue: eResearchType
of sTags: setValue: OrderedSet[eDevelopmentField]
of eDField: eDTypeValue: eDevelopmentField
ProjectProperties=refProjectPropertiesObjProjectPropertiesObj=object
nodes: OrderedTableRef[string, Property]
var p =Property(kind: tFloat, floatValue: 2.0)
trying to make produces the error:
Hint: test [Processing]
Hint: hashes [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
test.nim(72, 5) Error: invalid type: 'T' in this context: 'Property'
(1 of 1) error: invalid type: 'T' in this context: 'Property'
Which is wery confusing. In some moment i had probably the same error telling something about bad template initialization, which is even more confusing (now i can't reproduce it)
In case it's not clear: error string is of tArray: arrayValue: seq, there seq should have [type] attribute
The text was updated successfully, but these errors were encountered:
trying to make produces the error:
Which is wery confusing. In some moment i had probably the same error telling something about bad template initialization, which is even more confusing (now i can't reproduce it)
In case it's not clear: error string is of tArray: arrayValue: seq, there seq should have [type] attribute
The text was updated successfully, but these errors were encountered: