PR# 20001 Once classes: invalid inspect value: procedure not available for creation

Problem Report Summary
Submitter: gobobe
Category: Compiler
Priority: Low
Date: 2026/06/07
Class: Bug
Severity: Non-critical
Number: 20001
Release: 25.12.9.8922
Confidential: No
Status: Open
Responsible:
Environment: win
Synopsis: Once classes: invalid inspect value: procedure not available for creation

Description
The validity rule VOMB-1 says that the inspect values should be valid.
In the example below, the inspect value `{BB}.g` (which is a short notation for `create {BB}.g`) is not valid because `g` is not available for creation to class `AA`.

--
Eric Bezault
To Reproduce
class AA

create

	make

feature

	make
		local
			b: BB
		do
			create b.f
			inspect b
			when {BB}.g then
			else
			end
		end
	
end
~~~~~~~~~~~~~~~
once class BB

create

	f

create {BB}

	g

feature

	f
		once
		end

	g
		once
		end

end
Problem Report Interactions