Bug 476881 - [linking] Type argument gets messed up in method call on nested class
Summary: [linking] Type argument gets messed up in method call on nested class
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.4   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 09:30 EDT by Jan Koehnlein CLA
Modified: 2015-09-08 09:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2015-09-08 09:30:44 EDT
In the following Xtend class, the first call to descendingSet works, while the second fails:

  abstract class Outer<V> implements NavigableSet<V> {
    abstract static class Inner<V> extends Outer<V> {		
      override descendingSet() {
        super.descendingSet()
      } 
    }
  

    def Outer<V> descendingSet() {
      val Inner<V> range = null
      return range.descendingSet()  
        // Type mismatch: cannot convert from Outer<Object> to Outer<V>
    }
	
    override Outer<V> descendingSet2() {
      val Outer<V> range = null
      return range.descendingSet() // works
    }
	
  }