Skip to content

Fix for SCL-11344 (apply inherited from generic trait) - #376

Closed
Paweł Chorążyk (greenjoe) wants to merge 1 commit into
JetBrains:idea171.xfrom
greenjoe:SCL-11344-application-from-generic-trait
Closed

Fix for SCL-11344 (apply inherited from generic trait)#376
Paweł Chorążyk (greenjoe) wants to merge 1 commit into
JetBrains:idea171.xfrom
greenjoe:SCL-11344-application-from-generic-trait

Conversation

@greenjoe

Copy link
Copy Markdown
Contributor
  • I modified lines that handled curly brace imports in ScImportStmtImpl but appeared to have completely no effect (boolean result was ignored) - I believe I made the behavior similar to singular imports
  • Added test for SCL-11344 in ApplyTest.scala

I've spent a few days trying to find the source of this bug and I am still not sure whether it is a good way to fix it and if there might be negative performance implications. I don't think I can do any better though so I thought it might be a good idea to just create a pull request and find out if the change makes any sense :-) The lines I changed in ScImportStmtImpl seemed really suspicious, so even if the fix is not appropriate I believe it's worth to take a look at the code there :-)

* Modified lines that handled curly brace imports in ScImportStmtImpl
but appeared to have completely no effect (boolean result was ignored)
- made behavior similar to singular imports
* Added test for SCL-11344 in ApplyTest.scala
#SCL-11344 fixed
Nikolay Tropin (niktrop) added a commit that referenced this pull request Apr 11, 2017
check for imported names should not be ignored
+ minor refactoring
#SCL-11344 fixed

based on #376
@niktrop

Copy link
Copy Markdown
Contributor

Thank you for pointing to the issue. I imagine that it was hard to find it. You may have a look to the fix: d8d1a54

Andrew (adkozlov) pushed a commit that referenced this pull request Apr 14, 2017
check for imported names should not be ignored
+ minor refactoring
#SCL-11344 fixed

based on #376
Dmitry Naydanov (Lugzan) pushed a commit that referenced this pull request Apr 17, 2017
check for imported names should not be ignored
+ minor refactoring
#SCL-11344 fixed

based on #376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants