Merge: Fixed safe-call missed cast when reference primitive data types
authorJean Privat <jean@pryen.org>
Tue, 3 Dec 2019 15:39:57 +0000 (10:39 -0500)
committerJean Privat <jean@pryen.org>
Tue, 3 Dec 2019 15:39:57 +0000 (10:39 -0500)
This patch fixed the issue #2804 where the compiler didn't add the cast from primitive data to
`val *` when accessed by safe-call syntax.

Signed-off-by: Louis-Vincent Boudreault <lv.boudreault95@gmail.com>

Pull-Request: #2806
Reviewed-by: Jean Privat <jean@pryen.org>

src/rapid_type_analysis.nit

index 5b8d41b..970d8df 100644 (file)
@@ -382,7 +382,6 @@ class RapidTypeAnalysis
                                v.enter_visit(npropdef.n_block)
                        end
                end
-
        end
 
        fun add_cast(mtype: MType)