mirror of
https://github.com/irmen/prog8.git
synced 2025-08-05 06:28:20 +00:00
Compare commits
1 Commits
structs650
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
5cb8bcead7 |
@@ -2346,7 +2346,7 @@ internal class AstChecker(private val program: Program,
|
||||
return value.type==BaseDataType.UWORD
|
||||
}
|
||||
targetDt.isStructInstance -> {
|
||||
return err("assigning this value to struct instance not supported (use pointers)")
|
||||
return err("assigning this value to struct instance not supported")
|
||||
}
|
||||
else -> return err("value type ${value.type.toString().lowercase()} doesn't match target type $targetDt")
|
||||
}
|
||||
@@ -2470,7 +2470,7 @@ internal class AstChecker(private val program: Program,
|
||||
if(sourceDatatype.isStructInstance && sourceDatatype != targetDatatype)
|
||||
errors.err("value type $sourceDatatype doesn't match target type $targetDatatype", position)
|
||||
else
|
||||
errors.err("assigning this value to struct instance not supported (use pointers)", position)
|
||||
errors.err("assigning this value to struct instance not supported", position)
|
||||
}
|
||||
else
|
||||
errors.err("value type $sourceDatatype doesn't match target type $targetDatatype", position)
|
||||
|
@@ -88,6 +88,7 @@ STRUCTS and TYPED POINTERS
|
||||
Future Things and Ideas
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
- %breakpoint after an assignment is parsed as part of the expression (x % breakpoint), that should not happen
|
||||
- when a complete block is removed because unused, suppress all info messages about everything in the block being removed
|
||||
- fix the line, cols in Position, sometimes they count from 0 sometimes from 1
|
||||
- is "checkAssignmentCompatible" redundant (gets called just 1 time!) when we also have "checkValueTypeAndRange" ?
|
||||
|
Reference in New Issue
Block a user