Project

General

Profile

Actions

Bug #16014

closed

Change validation does not compile with latest version

Added by Vincent MEMBRÉ over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Compilation fails in rudder 5.0.15 on change validation plugin because of our switch to value class for Id classes (NoeId, DirectiveId ...)

with the following error:

Parameter type in structural refinement may not refer to a user-defined value classdef

It's because structural types (type created on demand like here

 def treenode = new TreeNode { }

has member using a value class as parameter

def DirectiveChildren(directiveId : DirectiveId)

changing to a class instead of def in treenode fix the issue

Actions

Also available in: Atom PDF