PR# 18118 Assignment attempt ignores SCOOP rules

Problem Report Summary
Submitter: saynte
Category: Compiler
Priority: Medium
Date: 2012/02/20
Class: Bug
Severity: Serious
Number: 18118
Release: 7.0
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.21 (KHTML, like Gecko) Chrome/19.0.1041.0 Safari/535.21
Synopsis: Assignment attempt ignores SCOOP rules

Description
It appears that the assignment attempt will ignore SCOOP typing rules, and allow non-exclusive access to separate objects.

The example below shows a separate object being created, then assigned to a non-separate one and allows a call to be made.
To Reproduce
The effect can be seen with an 'A'-class that defines 'foo' to print something to the console. The following code will allow unguarded access to the object sa through a.

class
  APPLICATION
create
  make
feature
  make
    local
      sa: separate A
      a: A
    do
      create sa
      a ?= sa
      a.foo
    end
end
Problem Report Interactions