History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-32437
Type: Usability Problem Usability Problem
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Don't mark unused parameters for functions which are overridden

Created: 25 Jun 08 13:25   Updated: 05 Nov 08 01:03
Component/s: Flex Support
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. testcase 1 - afterwards.jpg
(23 kb)

Build: 8,500


 Description  « Hide
  • This is not useful in general.
  • In addition, it's inconsistent with Java editor behavior.


 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 25 Jun 08 13:27
Hmm...it actually seems to work correctly for a simple testcase, but not for actual real source code.
Looks like I have some digging to do to come up with a testcase...stay tuned.

Taras Tielkes - 25 Jun 08 13:47
Here's a first testcase:
  • Create FooFoo.as:
    package {
    	import flash.display.Sprite;
    	public class FooFoo extends Sprite {
        }
    }
    
    class Base {
        public function foo(s:String, n:int):void {}
    }
  • Paste next fragment directly underneath (from system clipboard):
    class Derived extends Base {
        public function foo(s:String, n:int):void {}
    }
  • Use F2 to navigate to "missing override" error, and accept the suggested fix
  • Result: unused params warnings are gone from Derived, but are present in Base