Support completion for inherited methods in traits
See original GitHub issuetrait A {
fn a(&self);
}
trait B: A {
fn b(&self) {
self.a(); // <-- code completion doesn't work after "self."
}
}
struct X;
// impl A for X {
// fn a(&self) {}
// }
impl B for X {
fn b(&self) {
self.a(); // <-- code completion doesn't work after "self."
// However, it DOES work if you uncomment the "impl A" block.
// Apparently, code completion is based on "impl" blocks and not on traits?
}
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using inherited methods from classes inside of traits does not ...
Using inherited methods from classes inside of traits does not code complete properly ; Project, PhpStorm ; Priority, Normal N ; Type, Bug...
Read more >Show inherited trait methods and properties in outline ... - GitHub
Currently I can view inherited properties by writing $this-> in a method and scrolling through the completion suggestions, but that's pretty ...
Read more >Traits - Manual - PHP
An inherited method from a base class is overridden by the method inserted into MyHelloWorld from the SayWorld Trait. The behavior is the...
Read more >INHERITED TRAITS LESSON PLAN - Kesler Science
INHERITED TRAITS LESSON PLAN – A COMPLETE SCIENCE LESSON USING THE 5E METHOD OF INSTRUCTION ... At the end of this inherited traits...
Read more >Inheritance of Traits by Offspring Follows Predictable Rules
Through his breeding experiments with pea plants, Mendel established three principles of inheritance that described the transmission of genetic traits before ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for a quick fix, confirmed.
No, this will be in alpha next monday.
It’s available in nightly since 0.1.0.1509-nightly: https://plugins.jetbrains.com/idea/plugin/8182-rust/31832-update