Created
July 15, 2020 14:54
-
-
Save creativecreatorormaybenot/461a20feb538a3c9d6fc71c1ab06f4d7 to your computer and use it in GitHub Desktop.
prefer_adjacent_string_concatenation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
const a1 = ''; | |
// Correct prefer_adjacent_string_concatenation lint. | |
print(a1 + ''); | |
const a2 = Custom(); | |
// Incorrect prefer_adjacent_string_concatenation lint. | |
print(a2 + ''); | |
} | |
class Custom { | |
const Custom(); | |
Custom operator +(dynamic other) => const Custom(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment