Bug 380808 - [ALF] Implicit call of conversion function for primitive type
Summary: [ALF] Implicit call of conversion function for primitive type
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: Confirmed
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 08:44 EDT by Jean Baucher CLA
Modified: 2019-02-04 04:11 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean Baucher CLA 2012-05-28 08:44:43 EDT
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

Alf should automatically convert primitive types in functions call:

If you consider a variable declaration like the following:
String myString = "prefix" + 4 ;

This should be automatically interpreted as:
String myString = "prefix" + ToString(4) ;// prefix4

A the moment, the Alf editor give an error saying that the operator +(String,Integer) is undefined.

http://www.eclipse.org/forums/index.php?t=rview&goto=875677

Reproducible: Always