Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

В viewtree не прорастают дефолтные методы из массивов, если явно не заданы в корне #550

Open
zerkalica opened this issue Mar 12, 2023 · 0 comments

Comments

@zerkalica
Copy link
Collaborator

zerkalica commented Mar 12, 2023

$mol_tag_tree $mol_list
	- Tags /$mol_view
	- Items /$mol_view
	sub /$mol_view
		^
			Tags /$mol_view
		^
			Items /$mol_view

Ожидаю

namespace $ {
	export class $mol_tag_tree extends $mol_list {
		Tags() { return ... } // Сейчас этого метода нет
		Items() { return ... } // И этого тоже

		sub() {
			return [
				...this.Tags(),
				...this.Items()
			] as readonly $mol_view[]
		}
	}
	
}

Аналогично со связями

$mol_select_list $mol_view
	Badges /$mol_view
	badges_list /$mol_view
	sub /$mol_view
		^
			badges_list <= Badges /$mol_view

Ожидаю

namespace $ {
	export class $mol_select_list extends $mol_view {
		
		Badges() {
			return [
			] as readonly $mol_view[]
		}
		
		badges_list() {
			return this.Badges() // Этого вызова сейчас нет
		}
		
		sub() {
			return [
				...this.badges_list()
			] as readonly $mol_view[]
		}
	}
	
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant