Could you help me to undestand my error !

BlitzMax Forums/BlitzMax Beginners Area/Could you help me to undestand my error !

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@Ferminho :

strict

Type TInteger
   Field X:Int = 0
   Function Create (N:Int)
      Local I:TInteger = New TInteger
      I.X = N
      Return I <- compiler : 'unable To convert from 'TInteger' to 'Int'
   End Function
End Type