Quantcast
Viewing all articles
Browse latest Browse all 106942

RSRP-288053: Making method abstract and applying suggested refactoring leads to uncompilable code

Reporter Image may be NSFW.
Clik here to view.
Hadi Hariri (hadihariri)
Hadi Hariri (hadihariri)
Created Jan 28, 2012 10:29:43 AM
Updated Jan 28, 2012 10:31:43 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1
Fixed in build No Fixed in build
a quick scenario
[1/28/12 7:27:19 AM] Krzysztof: I have class
[1/28/12 7:27:22 AM] Krzysztof: A:B
[1/28/12 7:27:27 AM] Krzysztof: B:C
[1/28/12 7:27:30 AM] Krzysztof: B is abstract
[1/28/12 7:27:43 AM] Krzysztof: so A inherits B which inherits C
[1/28/12 7:27:47 AM] Krzysztof: B is abstract
[1/28/12 7:27:52 AM] Krzysztof: C has a virtual method Foo
[1/28/12 7:28:06 AM] Krzysztof: if in B I want to make the method abstract but write
[1/28/12 7:28:20 AM] Krzysztof: public abstract void Foo();
[1/28/12 7:28:35 AM] Krzysztof: R# gives me option to make it override
[1/28/12 7:28:45 AM] Krzysztof: but it then removes the abstract modifier
[1/28/12 7:28:56 AM] Krzysztof: which leads to non-compilable code

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>