this in a part-owned action resolves to the action performance instead of the owning part
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the minimal model in bug.sysml and reproduce the issue using %load, %instantiate p, and %features p.a. Trace how this is resolved for the owned action a, using the quoted SysML rules as the expected behavior. Done means ctx resolves to owning part p and the type-mismatch error no longer occurs.
索引モデルが issue の本文から書いたものです。
説明
Model and observed behaviour
Minimal model (`bug.sysml`), on sysml v0.9.0 (Windows):
// Written in file: bug.sysml
action def A {
ref part ctx : P;
}
part def P {
action a : A {
:>> ctx = this;
}
}
part p : P;
Command:
sysml> %load bug.sysml
sysml> %instantiate p
sysml> %features p.a
Output:
Instance: p.a (ID: 2)
Features:
ctx: <error: feature value a.ctx: type mismatch: cannot write instance(2) (instance) to a feature typed by P>
`instance(2)` is the performance of action `a` itself (i.e. `p.a`), not `p`. So
`a.this` resolved to the action, and `:>> ctx = this` tried to write the action into a
`P`-typed feature.
What the specification requires
a is an ownedAction of part p, so a.this must be p; :>> ctx = this should
set ctx to p, with no error.
OMG SysML v2.0 (formal/2026-03-02), Part 1, §9.2.4.2.1 (Part):
"The
thisreference of aownedActionis always its owning Part."
Same document, §8.4.13.2 (Action Usages — "Semantics of this"):
"... the value of
thisis the top-level Action in the hierarchy ..., unless that
top-level Action is itself one of the ownedActions of a Part (or one of the
ownedPerformances of an Item), in which case the value is that Part (or Item)."
Kind of gap
Valid model is rejected (false positive)
Reference implementation
No response
Version
sysml v0.9.0 Commit: ee54ea03ea3ca8fb2c796ecda364adf748c40304 Build time: 2026-09-25_01:12:11 Go version: go1.25.0
- 主要言語
- Go
- スター
- 24
- フォーク
- 5
- 平均マージ
- 10時間 11分
- マージ済み PR(30日)
- 572
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Open-MBEE/OpenSysML のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
Open-MBEE/OpenSysML#608 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
Open-MBEE/OpenSysML の issue をすべて見る
似ている issue
-
[Docs] - Document minimum Terraform/OpenTofu version (>= 1.11) required by write-only argumentsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
MagaluCloud/terraform-provider-mgc#323 ·
メンテナーはふだん 11 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rossoctl/context-guru#366 ·
メンテナーはふだん 1 日以内に返信
-
stage-fail
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
siyuan-note/bazaar#2293 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
piraeusdatastore/piraeus-operator#1070 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信