Refactor Bug List
See original GitHub issueI’m going to keep this updated with any issues (as replies) I find relating to the new compiler while I move my game across.
Static Field Emit
function ZStats.new(...)
local self = setmetatable({}, ZStats)
self:constructor(...)
return self
end
ZStats.ZERO = ZStats.new({}, 0)
ZStats.BASE = ZStats.new({}, 1)
function ZStats:constructor(stats, defaultStatAmount)
if defaultStatAmount == nil then defaultStatAmount = 0 end
self.mStrength = ((stats.Strength ~= nil) and stats.Strength or defaultStatAmount);
self.mEndurance = ((stats.Endurance ~= nil) and stats.Endurance or defaultStatAmount);
self.mIntellect = ((stats.Intellect ~= nil) and stats.Intellect or defaultStatAmount);
self.mSpirit = ((stats.Spirit ~= nil) and stats.Spirit or defaultStatAmount);
self.mAgility = ((stats.Agility ~= nil) and stats.Agility or defaultStatAmount);
self.mCriticalStrike = ((stats.CriticalStrike ~= nil) and stats.CriticalStrike or defaultStatAmount)
end
Static fields should be after constructor, as in this instance - constructor isn’t defined and Lua throws an error due to this.
This can be worked around by moving the static fields below the constructor, but it should always have the constructor first regardless.
Bug List
Functions
Classes
- Static Field Emit
Objects
Indexing
Macros
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Bug List
ID Product Comp Assignee△ Status△ Changed
141777 java Refactor ralphbenjamin NEW 2016‑03‑25
271688 java Refactor sdedic NEW 2018‑04‑02
155315 java Refactor jbecicka NEW 2010‑09‑23
Read more >Bug List - Bugs - Eclipse
ID Product Comp Assignee△ Status△ Changed
240394 Java Ser Core cameron.bateman NEW 2013‑02‑07
265540 z_Archiv Eclipsel nobody NEW 2022‑06‑09
202262 CDT cdt‑core cdt‑core‑inbox NEW 2020‑09‑04
Read more >Statistical Analysis of Eclipse Refactoring Bug Reports
Statistical Analysis of Eclipse Refactoring Bug Reports ... Fowler's web site lists over 90 refactorings ... Eclipse Bug Report System.
Read more >On the Relationship between Refactoring Actions and Bugs
Then, by mining the change history of the three systems, the authors identified bug- fixing commits by linking commit messages and issue tracker...
Read more >Statistical Analysis of Refactoring Bug Reports in Eclipse ...
We discovered that 5,045 bugs related to JDT refactorings have been reported on Eclipse's bug report website (Eclipse Bugzilla) as of January 2021....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Use of string.includes emits invalid code
https://osyrisrblx.github.io/playground/#code/A4JwlgdgLgFARAQwM4BM4DpIGMA2BXFAUyXiTgEpyBuAKCA
The code generated for this segment is erroneous:
Return value of push is incorrect
https://osyrisrblx.github.io/playground/#code/MYewdgzgLgBFCm0CCAnFBDAnjAvDA2gEQAS8ANmSIQLoDcAUPaJLAJYAmAHrnIlKhkwA6AA4BXCAAsAFIUms4k+CniEAlAxEpWYKNI6cNQA
The expected output should be
2, as it’s the second element.3is given instead.Incorrect emit:
Corrected emit: